<?php
 include ("../includes/common.php");
init(); 
testDB();
function testDB(){
	$smarty = new Smarty;
	$result =mysql_query("SELECT * FROM itemslist");
	while ($row = mysql_fetch_array($result )){
		$rows[] = $row;
	} 
	
		echo $rows[0];
	
	
	$smarty->assign('rows',$rows);
	$smarty->display('index.tpl');
	die();
}
?>

